﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace HRProject.Code.DTO
{
    public class BLWorktimeProperty
    {
        private Guid id;

        public Guid Id
        {
            get { return id; }
            set { id = value; }
        }

        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private Guid updateUserId;

        public Guid UpdateUserId
        {
            get { return updateUserId; }
            set { updateUserId = value; }
        }
        private DateTime updateDate;

        public DateTime UpdateDate
        {
            get { return updateDate; }
            set { updateDate = value; }
        }
        private Guid agentId;

        public Guid AgentId
        {
            get { return agentId; }
            set { agentId = value; }
        }

        private string fullName;

        public string FullName
        {
            get { return fullName; }
            set { fullName = value; }
        }

        private DateTime startTime;

        public DateTime StartTime
        {
            get { return startTime; }
            set { startTime = value; }
        }
        private long dataSignature;

        public long DataSignature
        {
            get { return dataSignature; }
            set { dataSignature = value; }
        }
        private int approved;

        public int Approved
        {
            get { return approved; }
            set { approved = value; }
        }

        public BLWorktimeProperty(Guid agentId, DateTime startTime)
        {
            this.id = Guid.Empty;
            this.agentId = agentId;
            this.startTime = startTime;
            this.description = string.Empty;
            this.approved = 0;
            this.updateUserId = Guid.Empty;
            this.updateDate = DateTime.Now;
        }
    }
}
